<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>flex布局</title>
		<style>
			.box{
				width: 800px;
				height: 600px;
				margin: 0 auto;
				border: 1px solid #000;
				display: flex;
				flex-direction: row;
				justify-content: space-evenly;
				align-items: flex-start;
				align-content: space-evenly;
			}
			.box .item{
				width: 100px;
				height: 100px;
				background-color: #f00;
			}
			.box .item:nth-child(2){
				flex-shrink: 2;
				align-self: center;
			}
			.box .item:nth-child(3){
				flex-shrink: 3;
				align-self: flex-end;
			}
		</style>
	</head>
	<body>
	
		
		<div class="box">
			<div class="item">1</div>
			<div class="item">2</div>
			<div class="item">3</div>
			<div class="item">4</div>
			<div class="item">5</div>
			<div class="item">6</div>
			<div class="item">7</div>
			<div class="item">8</div>
			<div class="item">9</div>
			<div class="item">10</div>
		</div>
		
		
		
		
		
		
		
		
		
		
		
		
		
		<!-- 笔记  https://www.ruanyifeng.com/blog/2015/07/flex-grammar.html -->
	</body>
</html>